package org.example.score.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 教师指导学生毕业综合训练情况
 * @TableName pd_jszdxsbyzhxlqk
 */
@TableName(value ="pd_jszdxsbyzhxlqk")
@Data
public class Jszdxsbyzhxlqk implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 年份
     */
    private String year;

    /**
     * 学校代码
     */
    private String xxdm;

    /**
     * 学校名称
     */
    private String xxmc;

    /**
     * 校内专业大类代码
     */
    private String xnzydldm;

    /**
     * 校内专业大类名称
     */
    private String xnzydlmc;

    /**
     * 专业代码
     */
    private String zydm;

    /**
     * 专业名称
     */
    private String zymc;

    /**
     * 所属单位号
     */
    private String ssdwh;

    /**
     * 所属单位名称
     */
    private String ssdwmc;

    /**
     * 综合训练学生数
     */
    private String zhxlxss;

    /**
     * 综合训练教师数
     */
    private String zhxljss;

    /**
     * 总分
     */
    private Double zf;

    /**
     * 在同专业得分
     */
    private Double ztzydf;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Jszdxsbyzhxlqk other = (Jszdxsbyzhxlqk) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getYear() == null ? other.getYear() == null : this.getYear().equals(other.getYear()))
            && (this.getXxdm() == null ? other.getXxdm() == null : this.getXxdm().equals(other.getXxdm()))
            && (this.getXxmc() == null ? other.getXxmc() == null : this.getXxmc().equals(other.getXxmc()))
            && (this.getXnzydldm() == null ? other.getXnzydldm() == null : this.getXnzydldm().equals(other.getXnzydldm()))
            && (this.getXnzydlmc() == null ? other.getXnzydlmc() == null : this.getXnzydlmc().equals(other.getXnzydlmc()))
            && (this.getZydm() == null ? other.getZydm() == null : this.getZydm().equals(other.getZydm()))
            && (this.getZymc() == null ? other.getZymc() == null : this.getZymc().equals(other.getZymc()))
            && (this.getSsdwh() == null ? other.getSsdwh() == null : this.getSsdwh().equals(other.getSsdwh()))
            && (this.getSsdwmc() == null ? other.getSsdwmc() == null : this.getSsdwmc().equals(other.getSsdwmc()))
            && (this.getZhxlxss() == null ? other.getZhxlxss() == null : this.getZhxlxss().equals(other.getZhxlxss()))
            && (this.getZhxljss() == null ? other.getZhxljss() == null : this.getZhxljss().equals(other.getZhxljss()))
            && (this.getZf() == null ? other.getZf() == null : this.getZf().equals(other.getZf()))
            && (this.getZtzydf() == null ? other.getZtzydf() == null : this.getZtzydf().equals(other.getZtzydf()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getYear() == null) ? 0 : getYear().hashCode());
        result = prime * result + ((getXxdm() == null) ? 0 : getXxdm().hashCode());
        result = prime * result + ((getXxmc() == null) ? 0 : getXxmc().hashCode());
        result = prime * result + ((getXnzydldm() == null) ? 0 : getXnzydldm().hashCode());
        result = prime * result + ((getXnzydlmc() == null) ? 0 : getXnzydlmc().hashCode());
        result = prime * result + ((getZydm() == null) ? 0 : getZydm().hashCode());
        result = prime * result + ((getZymc() == null) ? 0 : getZymc().hashCode());
        result = prime * result + ((getSsdwh() == null) ? 0 : getSsdwh().hashCode());
        result = prime * result + ((getSsdwmc() == null) ? 0 : getSsdwmc().hashCode());
        result = prime * result + ((getZhxlxss() == null) ? 0 : getZhxlxss().hashCode());
        result = prime * result + ((getZhxljss() == null) ? 0 : getZhxljss().hashCode());
        result = prime * result + ((getZf() == null) ? 0 : getZf().hashCode());
        result = prime * result + ((getZtzydf() == null) ? 0 : getZtzydf().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", year=").append(year);
        sb.append(", xxdm=").append(xxdm);
        sb.append(", xxmc=").append(xxmc);
        sb.append(", xnzydldm=").append(xnzydldm);
        sb.append(", xnzydlmc=").append(xnzydlmc);
        sb.append(", zydm=").append(zydm);
        sb.append(", zymc=").append(zymc);
        sb.append(", ssdwh=").append(ssdwh);
        sb.append(", ssdwmc=").append(ssdwmc);
        sb.append(", zhxlxss=").append(zhxlxss);
        sb.append(", zhxljss=").append(zhxljss);
        sb.append(", zf=").append(zf);
        sb.append(", ztzydf=").append(ztzydf);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}